#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cmath>
using namespace std;

int main()
{
    freopen("in.txt", "r", stdin);
    //freopen("out.txt", "w", stdout);
    int n,a[]={1,2,0,2,2,1,0,1};
    while(cin>>n)
    {
        if(a[n%8]==0) cout<<"yes";
        else cout<<"no";
        cout<<endl;
    }
    return 0;
}
